<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增商户')" />
	<th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-Commodity-add">
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">默认店铺名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="defaultShopName" id="defaultShopName" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">商家状态：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="businessStatus" id="businessStatus" required>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">手机：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="phone" id="phone" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">邮箱：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="email" id="email" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">公司名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="compName" id="compName" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">公司手机：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="compMobile" id="compMobile" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">公司电话：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="compPhone" id="compPhone" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">公司详细地址：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="compAddress" id="compAddress" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">联系人姓名：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="conName" id="conName" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">联系人QQ：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="conQq;" id="conQq;" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">联系人手机：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="conMobile" id="conMobile" required  maxlength=11>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">联系人EMAIL：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="conEmail" id="conEmail" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">营业执照号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="licenseNum" id="licenseNum" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">税务登记证号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="taxregistNum" id="taxregistNum" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">组织机构代码证：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="organNum" id="organNum" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">法定代表人：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="legal" id="legal" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">法定代表人身份证号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="legalIndentity" id="legalIndentity" required>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">开户行名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="openbank" id="openbank" required>
				</div>
			</div><div class="form-group">
			<label class="col-sm-3 control-label is-required">开户行支行：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" name="obBranch" id="obBranch" required>
			</div>
		</div>

			<div class="form-group">
				<label class="col-sm-3 control-label is-required">银行账号：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="bankNum" id="bankNum" required>
				</div>
			</div>
<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label is-required">创建人：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input class="form-control" type="text" name="createid" id="createid" required>-->
<!--				</div>-->
<!--			</div>-->

<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label is-required">修改人：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input class="form-control" type="text" name="updateUser" id="updateUser" required>-->
<!--				</div>-->
<!--			</div>-->

<!--			<div class="form-group">-->
<!--				<label class="col-sm-3 control-label is-required">是否生效：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input class="form-control" type="text" name="status" id="status" required>-->
<!--				</div>-->
<!--			</div>-->

		</form>
	</div>
	<th:block th:include="include :: footer" />
	<th:block th:include="include :: ztree-js" />
	<script type="text/javascript">


		var prefix = ctx + "Commoditylist";


		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/addSave", $('#form-Commodity-add').serialize());
			}
		}

		function doSubmit(index, layero){
			var body = layer.getChildFrame('body', index);
			$("#treeId").val(body.find('#treeId').val());
			$("#treeName").val(body.find('#treeName').val());
			layer.close(index);
		}
	</script>
</body>
</html>
